Globals in SDL.carp.SDL

is a thin wrapper around the SDL framework.

Event

module

Module

Hint

module

Module

INIT_EVERYTHING

external

Int

Keycode

module

Module

Mouse

module

Module

MouseState

module

Module

WindowEvent

module

Module

WindowFlags

module

Module

bg

defn

(Fn [(Ptr SDL_Renderer), (Ref SDL_Color a)] ())

                        (bg rend color)
                    

blend-mode-add

external

SDL_BlendMode

blend-mode-blend

external

SDL_BlendMode

blend-mode-mod

external

SDL_BlendMode

blend-mode-none

external

SDL_BlendMode

blit-surface

external

(Fn [(Ptr SDL_Surface), (Ptr SDL_Rect), (Ptr SDL_Surface), (Ptr SDL_Rect)] ())

create-rgb-surface

external

(Fn [Int, Int, Int, Int, Int, Int, Int, Int] (Ptr SDL_Surface))

create-texture-from-surface

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Surface)] (Ptr SDL_Texture))

create-window-and-renderer

external

(Fn [Int, Int, Int, (Ptr (Ptr SDL_Window)), (Ptr (Ptr SDL_Renderer))] ())

delay

external

(Fn [Int] ())

destroy-texture

external

(Fn [(Ptr SDL_Texture)] ())

destroy-window

external

(Fn [(Ptr SDL_Window)] ())

dimensions

defn

(Fn [(Ptr SDL_Texture)] SDL_Rect)

                        (dimensions texture)
                    

draw-texture

defn

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Texture), (Ref SDL_Point a)] ())

                        (draw-texture rend texture point)
                    

draw-texture-centered

defn

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Texture), (Ref SDL_Point a)] ())

                        (draw-texture-centered rend texture point)
                    

flip-horizontal

external

SDL_RendererFlip

flip-none

external

SDL_RendererFlip

flip-vertical

external

SDL_RendererFlip

free-surface

external

(Fn [(Ptr SDL_Surface)] ())

get-ticks

external

(Fn [] Int)

get-window-pixel-format

external

(Fn [(Ptr SDL_Window)] Int)

init

external

(Fn [Int] ())

point

external

(Fn [Int, Int] SDL_Point)

query-texture

external

(Fn [(Ptr SDL_Texture), (Ptr Int), (Ptr Int), (Ptr Int), (Ptr Int)] ())

quit

external

(Fn [] ())

rect

external

(Fn [Int, Int, Int, Int] SDL_Rect)

render-clear

external

(Fn [(Ptr SDL_Renderer)] ())

render-copy

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Texture), (Ptr SDL_Rect), (Ptr SDL_Rect)] ())

render-copy-ex

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Texture), (Ptr SDL_Rect), (Ptr SDL_Rect), Double, (Ptr SDL_Point), SDL_RendererFlip] ())

render-draw-line

external

(Fn [(Ptr SDL_Renderer), Int, Int, Int, Int] ())

render-draw-lines

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Point), Int] ())

render-draw-point

external

(Fn [(Ptr SDL_Renderer), Int, Int] ())

render-fill-rect

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Rect)] ())

render-fill-rects

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Rect), Int] ())

render-present

external

(Fn [(Ptr SDL_Renderer)] ())

render-read-pixels

external

(Fn [(Ptr SDL_Renderer), (Ptr SDL_Rect), Int, (Ptr ()), Int] Int)

rgb

external

(Fn [Int, Int, Int] SDL_Color)

rgba

external

(Fn [Int, Int, Int] SDL_Color)

save-bmp

external

(Fn [(Ptr SDL_Surface), String] Int)

set-render-draw-blend-mode

external

(Fn [(Ptr SDL_Renderer), SDL_BlendMode] ())

set-render-draw-color

external

(Fn [(Ptr SDL_Renderer), Int, Int, Int, Int] ())

set-window-size

external

(Fn [(Ptr SDL_Window), Int, Int] ())

set-window-title

external

(Fn [(Ptr SDL_Window), (Ptr CChar)] ())

surface-pitch

external

(Fn [(Ptr SDL_Surface)] Int)

surface-pixels

external

(Fn [(Ptr SDL_Surface)] (Ptr ()))